﻿using AutoMapper;
using FutureApp.Media.Dto;

namespace FutureApp.Media.Mapper
{
    internal class MediaProfile : Profile
    {
        public MediaProfile()
        {
            this.CreateMap<Picture, PictureEntityDto>()
                .AfterMap((src, dest) => dest.Path = dest.Path.TrimStart('/'));
        }
    }
}
